package com.woniu.entity;

import java.util.Arrays;
import java.util.List;
import java.util.Map;

/**
 * @author WenXin
 * @version 1.0
 * @description: TODO
 * @date 2022/8/17 15:14
 */
public class Chinese implements Person {
    private String name;
    private int age;
    private Wife wife;
    private Double money;

    private String[] phone;

    private boolean health;

    private List<String> list;
    private List<Wife> wifeList;
    private Map<String, String> map;
    private Map<String, Wife> wifeMap;

    public void setWifeMap(Map<String, Wife> wifeMap) {
        this.wifeMap = wifeMap;
    }

    public Chinese() {
    }

    public Chinese(String name, int age, Wife wife, Double money, String[] phone, boolean health, List<String> list, List<Wife> wifeList) {
        this.name = name;
        this.age = age;
        this.wife = wife;
        this.money = money;
        this.phone = phone;
        this.health = health;
        this.list = list;
        this.wifeList = wifeList;

    }

    public Chinese(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void setWife(Wife wife) {
        this.wife = wife;
    }

    public void setMoney(Double money) {
        this.money = money;
    }

    public void setPhone(String[] phone) {
        this.phone = phone;
    }

    public void setHealth(boolean health) {
        this.health = health;
    }

    public void setList(List<String> list) {
        this.list = list;
    }

    public void setWifeList(List<Wife> wifeList) {
        this.wifeList = wifeList;
    }

    public void setMap(Map<String, String> map) {
        this.map = map;
    }

    public Chinese(String name, int age, Wife wife) {
        this.name = name;
        this.age = age;
        this.wife = wife;
    }

    @Override
    public void eat() {
        System.out.println("中国人吃鸡腿");
    }

    @Override
    public String toString() {
        return "Chinese{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", wife=" + wife +
                ", money=" + money +
                ", phone=" + Arrays.toString(phone) +
                ", health=" + health +
                ", list=" + list +
                ", wifeList=" + wifeList +
                ", map=" + map +
                ", wifeMap=" + wifeMap +
                '}';
    }
}
